#ifndef REQUESTPARSER_HPP
 #define REQUESTPARSER_HPP

#include "../Api Headers/DataTree.hpp"

class RequestParser
{
 public:
  RequestParser();
  ~RequestParser();
  void		ParseRequest(const std::string &Request, zia::api::DataTree &Tree, std::string &Body);
 private:
  void		GetHeader(const std::string &Request, std::string &Body);
  void		ParseFirstLine(zia::api::DataTree &Tree);
  void		ParseHeader(std::string to_parse, zia::api::DataTree &Tree);
  std::string	GetNextLine();
  std::string	_request;
};

#endif // REQUESTPARSER_HPP
